// let redirect_uri = "http://workdev.shch8.com" //测试环境
let redirect_uri = "http://weiwork.fjscfy.cn" //正式环境
if(!window.location.origin.includes('8047')){
  redirect_uri = window.location.origin+'/login'
}
// if(!this.$store.state.user.userInfo.token){
//   console.log(8,this.$route.from)
// }
let config = {
  fileUrl:'http://weiwork.fjscfy.cn/quickoffice/',
  // APPID: "ww4e903a7277ee1b3f", //测试环境
  APPID: "wwd0d90aa44cf5ffd4", //正式环境
  redirect_uri: redirect_uri,
  agentid:'1000002',//资产管理测试/正式
  // agentid:'1000003',//资产统计测试环境
  // agentid:'1000006',//资产统计正式环境
  // agentid:'1000004',//分类管理测试环境
  // agentid:'1000011',//分类管理正式环境
  originRouteFrom:{
    path:'',
    query:{}
  },
  leaveRoute:[
    {
      title: "出差请休假申请",
      items: [
        {
          route: "/leave/applyIndex",
          name: "填写申请",
          icon: "fa-twitter",
        },
        {
          route: "/leave/myApplyList",
          name: "我的申请",
          icon: "fa-file-text-o",
        },
        // {
        //   route: "/leave/entryTime",
        //   name: "入职时间修正",
        //   icon: "fa-calendar",
        // },
      ],
    },
    {
      title: "我的审批",
      items: [
        {
          route: "/leave/waitApproveList",
          name: "待我审批",
          icon: "fa-envelope-o",
        },
        {
          route: "/leave/hadApproveList",
          name: "我已审批",
          icon: "fa-pencil-square-o",
        },
      ],
    },
    {
      title: "出差请休假申请单",
      items: [
        {
          route: "/leave/documentIndex",
          name: "查看单据",
          icon: "fa-eye",
        },
        {
          route: "/leave/standardTable",
          name: "出差管理办法 | 住宿标准",
          icon: "fa-rss",
        },
      ],
    },
  ],
  messageRoute:[
    {
      title: "短信",
      items: [
        {
          route: "/message/messageSend",
          name: "短信发送",
          icon: "fa-send",
        },
        {
          route: "/message/messageHistory",
          name: "短信发送记录",
          icon: "fa-history",
        },
      ],
    }
  ],
  meetingRoute:[
    {
      title: "会议计划",
      items: [
        {
          route: "/meeting/meetingPlan",
          name: "填写会议计划",
          icon: "fa-list-alt",
        },
        {
          route: "/meeting/meetingPublish",
          name: "我发布的",
          icon: "fa-arrow-up",
        },
      ],
    },
    {
      title: "我的会议",
      items: [
        {
          route: "/meeting/meetingJoin",
          name: "待参加",
          icon: "fa-users",
        },
        {
          route: "/meeting/meetingOver",
          name: "已结束",
          icon: "fa-info-circle",
        },
      ],
    }
  ]
  // agentid:'1000002',
}
export default config;